//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "TProfileEditForm.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "AdvGrid"
#pragma link "AdvListV"
#pragma link "BaseGrid"
#pragma resource "*.dfm"
TProfileEditForm *ProfileEditForm;
//---------------------------------------------------------------------------
__fastcall TProfileEditForm::TProfileEditForm(TComponent* Owner)
	: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TProfileEditForm::NewProfileButtonClick(TObject *Sender)
{
	NewProfile();
	return;
}
//---------------------------------------------------------------------------

void __fastcall TProfileEditForm::NewProfile(void)
{
	Item = ProfileAdvListView->Items->Add();
	Item->Caption = "NewName";
	ProfileNameLabeledEdit->Text = "NewName";
	ProfileNameLabeledEdit->SetFocus();
	return;
}

void __fastcall TProfileEditForm::DeleteProfile(void)
{
	ProfileAdvListView->Selected->Delete();
	return;
}

	void __fastcall CopyProfile(void);
	void __fastcall InsertSection(void);
	void __fastcall DeleteSection(void);
	void __fastcall UpSection(void);
	void __fastcall DownSection(void);

void __fastcall TProfileEditForm::CancelButtonClick(TObject *Sender)
{
	Close();
}
//---------------------------------------------------------------------------

void __fastcall TProfileEditForm::ProfileNameLabeledEditChange(TObject *Sender)
{
	Item->Caption = ProfileNameLabeledEdit->Text;
}
//---------------------------------------------------------------------------

